home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / os2tools / bnklysrc / b_help.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-11  |  7.0 KB  |  165 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software <no-Inc>                   */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          No-Cost<no-tm> Software.                       */
  7. /*        \ 1011 /                                                          */
  8. /*         ------                                                           */
  9. /*                                                                          */
  10. /*  Copyright (C) 1987, 1988, 1989 by Robert Hartman and Vincent Perriello  */
  11. /*                                                                          */
  12. /*                                                                          */
  13. /*               This module was written by Vince Perriello                 */
  14. /*                                                                          */
  15. /*                                                                          */
  16. /*                       BinkleyTerm "HELP" Module                          */
  17. /*                                                                          */
  18. /*                                                                          */
  19. /*    For complete  details  of the licensing restrictions, please refer    */
  20. /*    to the License  agreement,  which  is published in its entirety in    */
  21. /*    the MAKEFILE and BT.C, and also contained in the file LICENSE.210.    */
  22. /*                                                                          */
  23. /*    USE  OF THIS FILE IS SUBJECT TO THE  RESTRICTIONS CONTAINED IN THE    */
  24. /*    BINKLEYTERM  LICENSING  AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF    */
  25. /*    THIS  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES,  OR IF YOU DO    */
  26. /*    NOT HAVE THESE FILES,  YOU SHOULD  IMMEDIATELY CONTACT THE AUTHORS    */
  27. /*    AT THE  ADDRESSES LISTED BELOW.  IN NO EVENT SHOULD YOU PROCEED TO    */
  28. /*    USE   THIS  FILE  WITHOUT  HAVING   ACCEPTED  THE  TERMS  OF   THE    */
  29. /*    BINKLEYTERM  LICENSING AGREEMENT,  OR SUCH OTHER  AGREEMENT AS YOU    */
  30. /*    ARE ABLE TO REACH WITH THE AUTHORS.                                   */
  31. /*                                                                          */
  32. /*                                                                          */
  33. /*    The Authors can be reached at the following addresses:                */
  34. /*                                                                          */
  35. /*    Robert C. Hartman                      Vincent E. Perriello           */
  36. /*    Spark Software                         VEP Software                   */
  37. /*    427-3 Amherst Street                   111 Carroll Street             */
  38. /*    CS2032, Suite 232                      Naugatuck, CT 06770            */
  39. /*    Nashua, NH 03061                                                      */
  40. /*                                                                          */
  41. /*    FidoNet 1:132/101                      FidoNet 1:141/491              */
  42. /*    Data    (603) 888-8179                 Data    (203) 729-7569         */
  43. /*                                                                          */
  44. /*    Please feel free to contact us at any time to share your comments     */
  45. /*    about our software and/or licensing policies.                         */
  46. /*                                                                          */
  47. /*--------------------------------------------------------------------------*/
  48.  
  49. #include <stdio.h>
  50.  
  51. #include "com.h"
  52. #include "xfer.h"
  53. #include "zmodem.h"
  54. #include "keybd.h"
  55. #include "sbuf.h"
  56. #include "sched.h"
  57. #include "externs.h"
  58. #include "prototyp.h"
  59.  
  60. static char    *mhelp[] = {
  61.    "\033[H\033[2J",
  62.    "You now have BinkleyTerm in DUMB TERMINAL mode.\r\n",
  63.    "In DUMB TERMINAL mode the following special keys are enabled:\r\n\r\n",
  64.    "Alt-B   Cycle baud rate              Alt-C   Change communications parameters\r\n",
  65.    "Alt-D   Dial a system                Alt-H   Hang up by dropping DTR\r\n",
  66.    "Alt-J   Jump to DOS temporarily      Alt-L   Start/stop logging to a file\r\n",
  67.    "Alt-M   Manual poll                  Alt-P   Cycle communications port\r\n",
  68.    "Alt-R   Redial from a 'scan list'    Alt-S   Send BREAK signal to port\r\n",
  69.    "Alt-U   Go to UNATTENDED MAILER mode Alt-X   Exit BinkleyTerm\r\n",
  70.    "Alt-Y   Call boss node for mail\r\n",
  71.    "PgUp    Send a file (UPLOAD)         PgDn    Receive a file (DOWNLOAD)\r\n",
  72.    NULL
  73. };
  74.  
  75. static char    *uhelp[] = {
  76.    "\033[H\033[2J",
  77.    "You now have BinkleyTerm in UNATTENDED MAILER mode.\r\n",
  78.    "In UNATTENDED MAILER mode the following special keys are enabled:\r\n\r\n",
  79.    "     C          Make the next call (if any) immediately\r\n",
  80.    "     Alt-C      Clear data from the \"Today at a Glance\" window.\r\n",
  81.    "     Alt-J/ESC  Push to DOS (spawn COMMAND.COM)\r\n",
  82.    "     Alt-M      Manually POLL a node\r\n",
  83.    "     Alt-Q      Quit the current event\r\n",
  84.    "     Alt-R      Re-start mail events as though none have previously executed\r\n",
  85.    "     Alt-T      Shift into DUMB TERMINAL mode.\r\n",
  86.    "     Alt-W      Redraw screen.\r\n"
  87.    "     Alt-X      Exit from BT with ERRORLEVEL 1\r\n",
  88.    "     cursorkeys PGUP/DN, UP/DN ARROW, HOME, and END scroll the 'Pending' window\r\n",
  89.    "     F1..F10    Exit to DOS with errorlevel (10*n) (F1=10,etc)\r\n",
  90.    NULL
  91. };
  92.  
  93. void main_help ()
  94. {
  95.    char *c;
  96.    int i;
  97.    char j[100];
  98.  
  99.    for (i = 0; mhelp[i] != NULL; i++)
  100.       scr_printf (mhelp[i]);
  101.  
  102.    for (i = 0; i < 9; i++)
  103.       {
  104.       if (keys[i] != NULL)
  105.          {
  106.          c = keys[i];
  107.          while (*c && (*c != '\n'))
  108.             {
  109.             if (*c == '\r')
  110.                *c = '|';
  111.             ++c;
  112.             }
  113.  
  114.          sprintf (j, "Alt-F%-2d Macro string '%s'\r\n", i + 1, keys[i]);
  115.          scr_printf (j);
  116.  
  117.          c = keys[i];
  118.          while (*c && (*c != '\n'))
  119.             {
  120.             if (*c == '|')
  121.                *c = '\r';
  122.             ++c;
  123.             }
  124.          }
  125.       }
  126.  
  127.    scr_printf ("\r\nPress a key to continue...");
  128.    FOSSIL_CHAR ();
  129.    scr_printf ("\r\n");
  130. }
  131.  
  132. void mailer_help ()
  133. {
  134.    int i;
  135.    char j[100];
  136.  
  137.    for (i = 0; uhelp[i] != NULL; i++)
  138.       scr_printf (uhelp[i]);
  139.  
  140.    if (do_screen_blank)
  141.       {
  142.       scr_printf ("     Alt-B      Blank the screen immediately\r\n");
  143.       }
  144.       
  145.    if (BBSreader != NULL)
  146.       {
  147.       scr_printf ("     Alt-E      Execute '");
  148.       scr_printf (BBSreader);
  149.       scr_printf ("' as message editor\r\n");
  150.       }
  151.  
  152.    for (i = 0; i < 9; i++)
  153.       {
  154.       if (shells[i] != NULL)
  155.          {
  156.          sprintf (j, "     Alt-F%-2d   Execute '%s'\r\n", i + 1, shells[i]);
  157.          scr_printf (j);
  158.          }
  159.       }
  160.  
  161.    scr_printf ("\r\nPress a key to continue...");
  162.    FOSSIL_CHAR ();
  163.    scr_printf ("\r\n");
  164. }
  165.